﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace XDSoft.Model
{
    /// <summary>
    /// 描述数据库字段的 Attribute
    /// </summary>
    public class DataFieldAttribute : Attribute
    {
        /// <summary>
        /// 带参数构造函数
        /// </summary>
        /// <param name="fieldName">数据库字段名</param>
        /// <param name="fieldType">数据库字段类型</param>
        public DataFieldAttribute(string fieldName, string fieldType)
        {
            this._fieldName = fieldName;
            this._fieldType = fieldType;
        }

        //  
        private string _fieldName;
        /// <summary>
        /// 数据库字段名
        /// </summary>
        public string FieldName
        {
            get { return _fieldName; }
            set { _fieldName = value; }
        }

        private string _fieldType;

        /// <summary>
        /// 数据库字段类型
        /// </summary>
        public string FieldType
        {
            get { return _fieldType; }
            set { _fieldType = value; }
        }
    } 

}
